package com.ruoyi.finance.mapper;

import com.ruoyi.finance.domain.CommissionDeliverySituation;

import java.util.List;

/**
 * 提成发货情况Mapper接口
 *
 * @author admin
 * @date 2023-10-19
 */
public interface CommissionDeliverySituationMapper {
    /**
     * 查询提成发货情况
     *
     * @param id 提成发货情况ID
     * @return 提成发货情况
     */
    public CommissionDeliverySituation selectCommissionDeliverySituationById(Long id);

    /**
     * 查询提成发货情况列表
     *
     * @param commissionDeliverySituation 提成发货情况
     * @return 提成发货情况集合
     */
    public List<CommissionDeliverySituation> selectCommissionDeliverySituationList(CommissionDeliverySituation commissionDeliverySituation);

    public List<CommissionDeliverySituation> selectCommissionDeliverySituationListForProduct(CommissionDeliverySituation commissionDeliverySituation);

    /**
     * 查询提成发货情况列表
     *
     * @param commissionDeliverySituation 提成发货情况
     * @return 提成发货情况集合
     */
    public List<CommissionDeliverySituation> selectSituationListForSync(CommissionDeliverySituation commissionDeliverySituation);

    /**
     * 查询提成发货情况列表
     * 货已发完，款已收完
     * 货已发完，款未收完
     *
     * @param commissionDeliverySituation 提成发货情况
     * @return 提成发货情况集合
     */
    public List<CommissionDeliverySituation> searchDeliverySituationList(CommissionDeliverySituation commissionDeliverySituation);

    /**
     * 查询提成发货情况列表
     * 货未发完，未核算提成
     * 已核算提成，重新出退
     *
     * @param commissionDeliverySituation 提成发货情况
     * @return 提成发货情况集合
     */
    public List<CommissionDeliverySituation> searchCheckSituationList(CommissionDeliverySituation commissionDeliverySituation);

    public List<CommissionDeliverySituation> searchCheckSituationList1(CommissionDeliverySituation commissionDeliverySituation);

    /**
     * 新增提成发货情况
     *
     * @param commissionDeliverySituation 提成发货情况
     * @return 结果
     */
    public int insertCommissionDeliverySituation(CommissionDeliverySituation commissionDeliverySituation);

    /**
     * 修改提成发货情况
     *
     * @param commissionDeliverySituation 提成发货情况
     * @return 结果
     */
    public int updateCommissionDeliverySituation(CommissionDeliverySituation commissionDeliverySituation);

    /**
     * 修改提成发货情况
     *
     * @param commissionDeliverySituation 提成发货情况
     * @return 结果
     */
    public int updateCommissionDeliverySituationStatus(CommissionDeliverySituation commissionDeliverySituation);

    /**
     * 根据PI号维护核算日期
     *
     * @param commissionDeliverySituation 提成发货情况
     * @return 结果
     */
    public int updateCommissionDateByPiNo(CommissionDeliverySituation commissionDeliverySituation);

    /**
     * 批量修改提成发货情况
     *
     * @param list 提成发货情况
     * @return 结果
     */
    public int batchUpdateCommissionDeliverySituation(List<CommissionDeliverySituation> list);

    /**
     * 删除提成发货情况
     *
     * @param id 提成发货情况ID
     * @return 结果
     */
    public int deleteCommissionDeliverySituationById(Long id);

    /**
     * 批量删除提成发货情况
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCommissionDeliverySituationByIds(Long[] ids);
}
